package com.google.srclib.stock;

import java.sql.SQLException;
import java.sql.Types;

import com.google.srclib.dataset.RecordDataSet;
import com.google.srclib.dataset.SimpleResultSet;

/**
 * 
 * @author Yuyao Liang
 * 
 */
public class StockSymbolDataSet extends RecordDataSet {
	public static final int CODE = 1;
	public static final int NAME = 2;
	public static final int DESCRIPTION = 3;

	public final String Version = Messages
			.getString("StockSymbolDataSet.VERSION"); //$NON-NLS-1$

	public StockSymbolDataSet() throws SQLException {
		super();
		addColumn(
				Messages.getString("StockSymbolDataSet.CODE"), Types.VARCHAR, 16, 0); //$NON-NLS-1$
		addColumn(
				Messages.getString("StockSymbolDataSet.NAME"), Types.VARCHAR, 255, 0); //$NON-NLS-1$
		addColumn(
				Messages.getString("StockSymbolDataSet.DESCRIPTION"), Types.VARCHAR, 255, 0); //$NON-NLS-1$
	}

	public StockSymbolDataSet(SimpleResultSet rs) throws SQLException {
		super(rs);
	}

	@Override
	public String getVersion() {
		return Version;
	}

}
